//
//  TouchView.m
//  03-UIResponder
//
//  Created by dllo on 16/7/18.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TouchView.h"

@implementation TouchView
// 继承于 UIResponder
// AppDelegate UIView UIViewController
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    NSLog(@"self.view = %@", self.nextResponder);
    NSLog(@"ViewController = %@", self.nextResponder.nextResponder);
    NSLog(@"Window = %@", self.nextResponder.nextResponder.nextResponder);
    NSLog(@"UIApplication = %@", self.nextResponder.nextResponder.nextResponder.nextResponder);
    NSLog(@"AppDelegate = %@", self.nextResponder.nextResponder.nextResponder.nextResponder.nextResponder);
//    [super touchesBegan:touches withEvent:event];
//    NSLog(@"%@---%s", [self class], __FUNCTION__);
}
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
//    NSLog(@"%s", __FUNCTION__);
}
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
//    NSLog(@"%s", __FUNCTION__);
}
@end
